colors = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']
sub_colors = colors[:4]
colors[:4] = ['yellow', 'yellow', 'yellow', 'yellow']
print(sub_colors)
print(colors)